﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin.aspx.cs" Inherits="IYAKASAPortal.Admin" %>

<%@ Register Assembly="gfPage" Namespace="gfPage" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>用户信息表</title>
    <link rel="stylesheet" href="../support/tfNiceTable/tfNiceTable.css" />
    <script type="text/javascript" src="../support/tfNiceTable/tfNiceTable.js"></script>
    <script type="text/javascript" src="../script/jquery-3.2.1.min.js"></script>
    <style type="text/css">
        .btnUpdateEnabled {
            width: 63px;
            height: 20px;
            border: 0px;
            background: url(../support/tfNiceTable/images/tfNiceTable_btnUpdateEnabled.gif);
        }
    </style>
    <script type="text/javascript">
        function doAjaxShow() {
            document.getElementById("divNiceTableMessage").style.left = window.parent.document.getElementById("mainContentFrame").scrollWidth / 2 - 200;
            document.getElementById("divNiceTableMessage").style.top = window.parent.document.getElementById("mainContentFrame").scrollHeight / 2 - 15;
            document.getElementById("divNiceTableMessage").style.display = "block";
        }
    </script>
</head>
<body style="overflow-y: auto">
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <input type="hidden" id="txtUniqueKey" name="txtUniqueKey" value="" />
                <div id="divNiceTableMessage" class="tfNiceTableMessage" style="display: none;">正在处理...</div>
                <table border="0" width="100%" cellpadding="0" cellspacing="0" style="height: 25px;">
                    <tr>
                        <td class="main_title_left"></td>
                        <td class="main_title_center">&nbsp;成都弥荣科技发展有限公司--成员管理</td>
                        <td class="main_title_right"></td>
                    </tr>
                </table>
                <table width="100%" cellpadding="0" cellspacing="0" border="0" class="mainWidth">
                    <tr>
                        <td>
                            <table class="table_without_border">
                                <tr>
                                    <td align="left">
                                        <img src="../support/tfNiceTable/images/tfNiceTable_Search.gif" alt="" />
                                        关键字<asp:TextBox ID="txtKeywords" runat="server"></asp:TextBox>
                                        <asp:Button ID="btnSearch" runat="server" Text="" CssClass="btnSearch" OnClientClick="doAjaxShow();" OnClick="btnSearch_Click" />
                                        <asp:Button ID="btnSearchAll" runat="server" Text="" CssClass="btnSearchAll" OnClientClick="doAjaxShow();" OnClick="btnSearchAll_Click" />
                                    </td>
                                    <td align="right">
                                        <div style="display: inline-block; float: right; margin-right: 10px;">
                                            <asp:Button ID="btnDelete" CssClass="btnDeleteEnabled" runat="server" OnClientClick="return confirm('确定要删除当前选中记录?');doAjaxShow();" OnClick="btnDelete_Click" />
                                        </div>
                                        <div style="display: inline-block; float: right; margin-right: 10px;">
                                            <asp:Button ID="btnInsert" CssClass="btnUpdateEnabled" runat="server" OnClientClick="doAjaxShow();" OnClick="btnInsert_Click" />
                                        </div>
                                        <a href="Add.aspx" style="display: inline-block; margin-right: 10px; float: right">
                                            <img src="../support/tfNiceTable/images/tfNiceTable_btnInsertEnabled.gif" alt="" /></a>
                                    </td>
                                </tr>
                            </table>
                            <table class="tfNiceTable" border="1" width="100%" cellpadding="3" cellspacing="0">
                                <thead>
                                    <tr class="tfNiceTable_head_style" style="text-align: center">
                                        <td align="center" class="tfNiceTable_head_topleft">&nbsp;</td>
                                        <td>序列编号</td>
                                        <td>员工编号</td>
                                        <td>员工账户</td>
                                        <td>用户权限</td>
                                        <td>职责岗位</td>
                                        <td>真实姓名</td>
                                        <td>注册日期</td>
                                    </tr>
                                </thead>
                                <tbody>
                                    <asp:Repeater ID="userList" runat="server">
                                        <ItemTemplate>
                                            <tr style="text-align: center; cursor: pointer;" onmouseover="doMouseOver(this);" onmouseout="doMouseOut(this);" onclick="setSelectedRowData(this,'<%# DataBinder.Eval(Container.DataItem, "ID")%>');">
                                                <td align="center" class="tfNiceTable_body_arrow">
                                                    <img src="../support/tfNiceTable/images/tfNiceTable_Pointer.gif" alt="" /></td>
                                                <td><%# DataBinder.Eval(Container.DataItem, "ID") %></td>
                                                <td><%# DataBinder.Eval(Container.DataItem, "EMPLOYEE_NO") %></td>
                                                <td><%# DataBinder.Eval(Container.DataItem, "EMPLOYEE_ID") %></td>
                                                <td><%# getPowerName(DataBinder.Eval(Container.DataItem, "EMPLOYEE_POWER").ToString()) %></td>
                                                <td><%# getLicenseName(DataBinder.Eval(Container.DataItem, "LICENSE_NAME").ToString()) %></td>
                                                <td><%# DataBinder.Eval(Container.DataItem, "EMPLOYEE_NAME") %></td>
                                                <td><%# DataBinder.Eval(Container.DataItem, "REG_DATE") %></td>
                                            </tr>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </tbody>
                                <tr>
                                    <td align="right" colspan="8">
                                        <cc1:GreatPager ID="GreatPager1" runat="server" GenerateNumber="true" OnPageIndexChanging="GreatPager1_PageIndexChanging"></cc1:GreatPager>
                                    </td>
                                </tr>
                            </table>
                            <br />
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>
